<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <h:outputStylesheet library="css" name="default.css"/>
        <h:outputStylesheet library="css" name="cssLayout.css"/>
        <title>Conasinf - Sofia / Login</title>
    </h:head>
    <body>
        Hola Mundo
        <h:graphicImage library="img" name="logo.png" />
        <form name='f' action='j_spring_security_check' method='POST'>
            <table>
                <tr><td>User:</td><td><input type='text' name='j_username' value=''></td></tr>
                <tr><td>Password:</td><td><input type='password' name='j_password'/></td></tr>
                <tr><td colspan='2'><input name="submit" type="submit"/></td></tr>
                <tr><td colspan='2'><input name="reset" type="reset"/></td></tr>
            </table>
        </form>

        <p:dialog header="Login" widgetVar="dialogLogin" resizable="false" id="dlgDialog"  
                  showEffect="fade" hideEffect="drop" modal="true" visible="true">
            <h:form>
                <h:panelGrid id="displayLogin0" columns="2" cellpadding="0" style="margin:0 auto;">  
                    <h:graphicImage library="img" name="icons/lockKey.png" />

                    <h:panelGrid id="displayLogin1" columns="2" cellpadding="0" style="margin:0 auto;">  
                        <h:outputText value="Usuario:" />  
                        <h:inputText value="" 
                                     size="20" 
                                     style="text-transform: uppercase;"/>  
                        <h:outputText value="Contraseña:" />
                        <h:inputText value="" 
                                     size="20" 
                                     style="text-transform: uppercase;"/>                 
                        <f:facet name="footer">
                            <p:separator/>
                            <p:commandButton id="enviarLogin"
                                             value="Aceptar"/>
                            <p:commandButton id="cancelarLogin"
                                             value="Cancelar"/>
                        </f:facet>
                    </h:panelGrid>
                </h:panelGrid>
            </h:form>
        </p:dialog>

    </body>
</html>
